package com.zhonghui.mes.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 产品检验对象 mes_product_inspector
 * 
 * @author yy
 * @date 2022-05-23
 */
@ApiModel("产品检验")
public class MesProductInspectorVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @ApiModelProperty("编号")
    private Long id;

    /** 流水号 */
    @Excel(name = "流水号")
    @ApiModelProperty("流水号")
    private String serialNumber;

    /** 生产完工ID */
    @Excel(name = "生产完工ID")
    @ApiModelProperty("生产完工ID")
    private Long productionCompletionId;

    /** 计划编号 */
    @Excel(name = "计划编号")
    @ApiModelProperty("计划编号")
    private String planNumber;

    /** 完工单号 */
    @Excel(name = "完工单号")
    @ApiModelProperty("完工单号")
    private String oddNumbers;

    /** 作业名称 */
    @Excel(name = "作业名称")
    @ApiModelProperty("作业名称")
    private String jobName;

    /** 产线名称 */
    @Excel(name = "产线名称")
    @ApiModelProperty("产线名称")
    private String productionLine;

    /** 检验批次 */
    @Excel(name = "检验批次")
    @ApiModelProperty("检验批次")
    private String batchNumber;

    /** 产品名称 */
    @Excel(name = "产品名称")
    @ApiModelProperty("产品名称")
    private String materialName;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("生产日期")
    private Date manufactureDate;

    /** 检验项 */
    @ApiModelProperty("检验项")
    @ Excel(name = "检验项")
    private String checkItem;

    /** 生产数量 */
    @Excel(name = "生产数量")
    @ApiModelProperty("生产数量")
    private Double quantity;

    /** 标准ID */
    @Excel(name = "标准ID")
    @ApiModelProperty("标准ID")
    private Long standardsId;

    /** 抽检数量 */
    @Excel(name = "抽检数量")
    @ApiModelProperty("抽检数量")
    private Double sampleQuantity;

    /** 检验值 */
    @Excel(name = "检验值")
    @ApiModelProperty("检验值")
    private Double inspectionValue;

    /** 阈值上限 */
    @ApiModelProperty("阈值上限")
    @Excel(name = "阈值上限")
    private Double upLimit;

    /** 阈值下限 */
    @ApiModelProperty("阈值下限")
    @Excel(name = "阈值下限")
    private Double lowerLimit;

    /** 检验结果 */
    @Excel(name = "检验结果")
    @ApiModelProperty("检验结果")
    private Integer result;

    /** 检验人id */
    @Excel(name = "检验人id")
    @ApiModelProperty("检验人id")
    private Long checkUserId;

    /** 检验人 */
    @Excel(name = "检验人")
    @ApiModelProperty("检验人")
    private String checkUserName;

    /** 检验时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("检验时间")
    private Date inspectorTime;

    /** 合格率 */
    @Excel(name = "合格率")
    @ApiModelProperty("合格率")
    private Double qualifiedRate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSerialNumber(String serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber()
    {
        return serialNumber;
    }
    public void setProductionCompletionId(Long productionCompletionId)
    {
        this.productionCompletionId = productionCompletionId;
    }

    public Long getProductionCompletionId()
    {
        return productionCompletionId;
    }
    public void setPlanNumber(String planNumber)
    {
        this.planNumber = planNumber;
    }

    public String getPlanNumber()
    {
        return planNumber;
    }
    public void setOddNumbers(String oddNumbers)
    {
        this.oddNumbers = oddNumbers;
    }

    public String getOddNumbers()
    {
        return oddNumbers;
    }
    public void setJobName(String jobName)
    {
        this.jobName = jobName;
    }

    public String getJobName()
    {
        return jobName;
    }
    public void setProductionLine(String productionLine)
    {
        this.productionLine = productionLine;
    }

    public String getProductionLine()
    {
        return productionLine;
    }
    public void setBatchNumber(String batchNumber)
    {
        this.batchNumber = batchNumber;
    }

    public String getBatchNumber()
    {
        return batchNumber;
    }
    public void setMaterialName(String materialName)
    {
        this.materialName = materialName;
    }

    public String getMaterialName()
    {
        return materialName;
    }
    public void setManufactureDate(Date manufactureDate)
    {
        this.manufactureDate = manufactureDate;
    }

    public Date getManufactureDate()
    {
        return manufactureDate;
    }
    public void setCheckItem(String checkItem)
    {
        this.checkItem = checkItem;
    }

    public String getCheckItem()
    {
        return checkItem;
    }
    public void setQuantity(Double quantity)
    {
        this.quantity = quantity;
    }

    public Double getQuantity()
    {
        return quantity;
    }
    public void setStandardsId(Long standardsId)
    {
        this.standardsId = standardsId;
    }

    public Long getStandardsId()
    {
        return standardsId;
    }
    public void setSampleQuantity(Double sampleQuantity)
    {
        this.sampleQuantity = sampleQuantity;
    }

    public Double getSampleQuantity()
    {
        return sampleQuantity;
    }
    public void setInspectionValue(Double inspectionValue)
    {
        this.inspectionValue = inspectionValue;
    }

    public Double getInspectionValue()
    {
        return inspectionValue;
    }
    public void setUpLimit(Double upLimit)
    {
        this.upLimit = upLimit;
    }

    public Double getUpLimit()
    {
        return upLimit;
    }
    public void setLowerLimit(Double lowerLimit)
    {
        this.lowerLimit = lowerLimit;
    }

    public Double getLowerLimit()
    {
        return lowerLimit;
    }
    public void setResult(Integer result)
    {
        this.result = result;
    }

    public Integer getResult()
    {
        return result;
    }
    public void setCheckUserId(Long checkUserId)
    {
        this.checkUserId = checkUserId;
    }

    public Long getCheckUserId()
    {
        return checkUserId;
    }
    public void setCheckUserName(String checkUserName)
    {
        this.checkUserName = checkUserName;
    }

    public String getCheckUserName()
    {
        return checkUserName;
    }
    public void setInspectorTime(Date inspectorTime)
    {
        this.inspectorTime = inspectorTime;
    }

    public Date getInspectorTime()
    {
        return inspectorTime;
    }
    public void setQualifiedRate(Double qualifiedRate)
    {
        this.qualifiedRate = qualifiedRate;
    }

    public Double getQualifiedRate()
    {
        return qualifiedRate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("serialNumber", getSerialNumber())
                .append("productionCompletionId", getProductionCompletionId())
                .append("planNumber", getPlanNumber())
                .append("oddNumbers", getOddNumbers())
                .append("jobName", getJobName())
                .append("productionLine", getProductionLine())
                .append("batchNumber", getBatchNumber())
                .append("materialName", getMaterialName())
                .append("manufactureDate", getManufactureDate())
                .append("checkItem", getCheckItem())
                .append("quantity", getQuantity())
                .append("standardsId", getStandardsId())
                .append("sampleQuantity", getSampleQuantity())
                .append("inspectionValue", getInspectionValue())
                .append("upLimit", getUpLimit())
                .append("lowerLimit", getLowerLimit())
                .append("result", getResult())
                .append("checkUserId", getCheckUserId())
                .append("checkUserName", getCheckUserName())
                .append("inspectorTime", getInspectorTime())
                .append("remark", getRemark())
                .append("qualifiedRate", getQualifiedRate())
                .toString();
    }
}
